import java.awt.Point;
import java.awt.event.*;

public class KeyHandel implements MouseMotionListener, MouseListener {

	@Override
	public void mouseClicked(MouseEvent e) {
		
		
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		
		
	}

	@Override
	public void mouseExited(MouseEvent e) {
		
		
	}



	@Override
	public void mouseReleased(MouseEvent e) {
		
		
	}

	@Override
	public void mouseDragged(MouseEvent e) {
		
		Screen.mse = new Point((e.getX()) + ((Frame.size.width - Screen.myWidth)/2), (e.getY()) + ((Frame.size.height - (Screen.myHeight))- (Frame.size.width - Screen.myWidth)/2));
		
	}

	@Override
	public void mousePressed(MouseEvent e) {
		Screen.store.click(e.getButton());
		
	}

	@Override
	public void mouseMoved(MouseEvent e) {
		Screen.mse = new Point((e.getX()) - ((Frame.size.width - Screen.myWidth)/2), (e.getY()) - ((Frame.size.height - (Screen.myHeight))- (Frame.size.width - Screen.myWidth)/2));
		
	}

	

}
